package kr.hkit.powerjava.chapter23;

public class MyThreadTest {
	public static void main(String[] args) {
		Thread t = new MyThread();
		
		t.start();										//run override
		
		Thread t2 = new Thread(new MyRunnable());		//runnable은 구현하고 생성자로 넘겨줘야만 thread로 동작한다.
		
		t2.start();
		
		for (char ch = 'a'; ch <= 'l'; ch++) {
			System.out.print(ch + " ");
			try {
				Thread.sleep(500);		//0.5초 1000 = 1초
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		
		System.out.println("Main Thread End");
	}
}
